Closed
Conversation
4191f25 to
775e56c
Compare
Member
|
Thanks, can you please squash and rebase? I'd like to see the CI output again. |
closes: vim#19272 Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Member
|
Hm, it fails for tiny versions. I suspect we need this on top of it? diff --git a/src/highlight.c b/src/highlight.c
index cc7715217..9ee925a02 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -3081,6 +3081,7 @@ hl_combine_attr(int char_attr, int prim_attr)
return get_attr_entry(&term_attr_table, &new_en);
}
+# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)
/*
* Blend two RGB colors based on blend value (0-100).
* blend: 0=use popup color, 100=use background color
@@ -3118,6 +3119,7 @@ blend_colors(guicolor_T popup_color, guicolor_T bg_color, int blend_val)
return (r << 16) | (g << 8) | b;
}
+#endif
/*
* Blend attributes for popup windows with opacity. |
Member
|
Thanks. I have included this now, fixing the conflict, please double verify. The reason for no screendump test is that this requires 'termguicolors', right? |
Member
|
I think this caused the following Coverity warnings: can you please have a look @mattn ? |
chrisbra
added a commit
that referenced
this pull request
Feb 21, 2026
Problem: Redundant code in hl_blend_attr()
(Coverity, after v9.2.0017)
Solution: Remove redundant if/else logic, remove redundant braces.
related: #19272
Signed-off-by: Christian Brabandt <cb@256bit.org>
chrisbra
added a commit
to chrisbra/vim
that referenced
this pull request
Feb 21, 2026
Problem: In screen_line(), there is a potential integer underflow when
accessing ScreenAttrs[off_to - 1] if off_to is zero.
(Coverity CID 1681430, after v9.2.0017)
Solution: Add a check to ensure off_to > 0 before accessing the
previous attribute index.
related: vim#19272
Signed-off-by: Christian Brabandt <cb@256bit.org>
chrisbra
pushed a commit
that referenced
this pull request
Feb 21, 2026
Problem: syntax highlighting lost in popup with opacity lower than 100
(after v9.2.0017)
Solution: Before blending, combine the popup's window color attribute
with the character's own attribute using hl_combine_attr()
(Yasuhiro Matsumoto).
related: #19272
closes: #19478
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
chrisbra
added a commit
that referenced
this pull request
Feb 21, 2026
Problem: In screen_line(), there is a potential integer underflow when
accessing ScreenAttrs[off_to - 1] if off_to is zero.
(Coverity CID 1681430, after v9.2.0017)
Solution: Add a check to ensure off_to > 0 before accessing the
previous attribute index.
related: #19272
closes: #19479
Signed-off-by: Christian Brabandt <cb@256bit.org>
Contributor
|
Hi, can you check #19485 which happens since this patch? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Popup windows in Vim currently have no transparency support. Users cannot create semi-transparent overlays that allow underlying text to be visible through the popup.
So, add a new
opacityoption for popup windows that controls transparency level.2026-01-29.130110.mp4
Opacity values
0- Fully transparent (background text fully visible)100- Fully opaque (default, no transparency)1-99- Partially transparentRequirements
'termguicolors'to be enabled for the blending effect to work